<extend name="Base:main" />
<block name="content">
    <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                商品管理
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#">商品管理</a></li>
                <li class="am-active">供应商品信息修改</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                      <div class="caption font-green bold">
                        <span class="am-icon-code"></span>供应信息修改
                    </div>
                </div>
				<div class="tpl-block ">
					<div class="am-g tpl-amazeui-form">
						<div class="am-u-sm-12 am-u-md-11">
							<form class="am-form am-form-horizontal" request_type="parent" action="" name="myfromSubmit" method="post">
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">商品名称</label>
									<div class="am-u-sm-9">
										{$info.name}
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">商品en13码</label>
									<div class="am-u-sm-9">
										{$info.earn13}
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">现有库存</label>
									<div class="am-u-sm-9">
										{$info.stock_num}
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">市场价</label>
									<div class="am-u-sm-7 float_left">
										<span><input type="text" datatype="/^[0-9]+(\.[0-9]{1,2})?$/g"  name="market_price" value="{$info.market_price}" placeholder="市场价"></span>
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">建议销售价</label>
									<div class="am-u-sm-7 float_left">
										<span><input type="text" datatype="/^[0-9]+(\.[0-9]{1,2})?$/g"  name="price" value="{$info.price}" placeholder="建议销售价"></span>
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">一件代发价</label>
									<div class="am-u-sm-5 float_left">
										<span><input type="text" datatype="/^[0-9]+(\.[0-9]{1,2})?$/g"  name="acting_price" value="{$info.acting_price}" placeholder="一件代发价"></span>
									</div>
								</div>
								<div class="am-form-group">
										<label for="user-email" class="am-u-sm-3 am-form-label">锁货价设置</label>
										<div class="am-u-sm-8 float_left">
											<table class="jiage_table_data">
												<tr>
													<td class="bt_j" valign="middle">锁货价&nbsp;&nbsp;&nbsp;</td>
													<td><input type="text" name="lock_price" id="lock_price" value="{$info.lock_price}" style="width:100px;" datatype="/^[0-9]+(\.[0-9]{1,2})?$/" nullmsg="锁货价不能为空" errormsg="锁货价格式错误"  value="" ></td>
													<td class="bt_j" valign="middle">最低锁货量&nbsp;&nbsp;&nbsp;</td>
													<td><input type="text" name="lock_start_num" id="lock_start_num" value="{$info.lock_start_num}" size="10" style="width:100px;" datatype="/^[0-9]+$/" nullmsg="最低锁货量不能为空" errormsg="最低锁货量格式错误"  value="" ></td>
												</tr>
												<tr>
													<td class="bt_j" valign="middle">每增加&nbsp;&nbsp;&nbsp;</td>
													<td><input type="text" name="inc_lock_num" id="inc_lock_num" value="{$info.inc_lock_num}" size="10" style="width:100px;" datatype="/^[0-9]+$/" nullmsg="增加数量不能为空" errormsg="格式错误"  value="" ></td>
													<td class="bt_j" valign="middle">单价减少&nbsp;&nbsp;&nbsp;</td>
													<td><input type="text" name="inc_lock_price" id="inc_lock_price" value="{$info.inc_lock_price}" style="width:100px;" datatype="/^[0-9]+(\.[0-9]{1,2})?$/" nullmsg="增加金额不能为空" errormsg="格式错误"  value="" ></td>
												</tr>
												<tr>
													<td class="bt_j" valign="middle">最低单价&nbsp;&nbsp;&nbsp;</td>
													<td  colspan="3"><input type="text" name="lock_small_price" value="{$info.lock_small_price}" id="lock_small_price" size="10" style="width:100px;" datatype="/^[0-9]+(\.[0-9]{1,2})?$/" nullmsg="最低单价不能为空" errormsg="格式错误"  value="" ></td>
												</tr>
											</table>
											
										</div>
										
								</div>
								<style>
									.jiage_table_data{ width:600px;}
									.jiage_table_data td{ height:60px; background:#efefef; width:200px; } 
									.jiage_table_data .bt_j{ width:100px; font-size:12px; text-align:right;}
									.jiage_table_data span.Validform_wrong{ float:left}
									.jiage_table_data td label{ font-weight:100; font-size:14px;}
								</style>
								<div class="am-form-group">
										<label for="user-email" class="am-u-sm-3 am-form-label">批发价设置</label>
										<div class="am-u-sm-8 float_left">
											<table class="jiage_table_data">
												<tr>
													<td class="bt_j" valign="middle">批发价&nbsp;&nbsp;&nbsp;</td>
													<td><input type="text" name="wholesale_price" id="wholesale_price" value="{$info.wholesale_price}" datatype="/^[0-9]+(\.[0-9]{1,2})?$/" style="width:100px;" nullmsg="批发价不能为空" errormsg="批发价格式错误"  value="" ></td>
													<td class="bt_j" valign="middle">最低批发量&nbsp;&nbsp;&nbsp;</td>
													<td><input type="text" name="wholesale_start_num" id="wholesale_start_num" value="{$info.wholesale_start_num}" datatype="/^[0-9]+$/" style="width:100px;" nullmsg="最低批发量不能为空" errormsg="最低批发量格式错误"  value="" ></td>
												</tr>
												<tr>
													<td class="bt_j" valign="middle">每增加&nbsp;&nbsp;&nbsp;</td>
													<td><input type="text" name="inc_wholesale_num" id="inc_wholesale_num" size="10" value="{$info.inc_wholesale_num}" style="width:100px;" datatype="/^[0-9]+$/" nullmsg="增加数量不能为空" errormsg="格式错误"  value="" ></td>
													<td class="bt_j" valign="middle">单价减少&nbsp;&nbsp;&nbsp;</td>
													<td><input type="text" name="inc_wholesale_price" id="inc_wholesale_price" value="{$info.inc_wholesale_price}" style="width:100px;" size="10" datatype="/^[0-9]+(\.[0-9]{1,2})?$/" nullmsg="增加金额不能为空" errormsg="格式错误"  value="" ></td>
												</tr>
												<tr>
													<td class="bt_j" valign="middle">最低单价&nbsp;&nbsp;&nbsp;</td>
													<td  colspan="3"><input type="text" name="wholesale_small_price" value="{$info.wholesale_small_price}" id="wholesale_small_price" size="10" style="width:100px;" datatype="/^[0-9]+(\.[0-9]{1,2})?$/" nullmsg="最低单价不能为空" errormsg="格式错误"  value="" ></td>
												</tr>
											</table>
										</div>
								</div>
								<div class="am-form-group">
									<label for="user-email" class="am-u-sm-3 am-form-label">供货仓库</label>
									<div class="am-u-sm-4 float_left">
										<select name="warehouse_id">
											<option value="0">默认供货</option>
											<volist name="warehouse_list" id="vo">
											<option value="{$vo.id}" <?php echo $info['warehouse_id'] == $vo['id'] ? 'selected' : ''; ?>>{$vo.name}</option>
											</volist>
										</select>
									</div>
								</div>
								<div class="am-form-group">
									<label for="user-name" class="am-u-sm-3 am-form-label">库存增加</label>
									<div class="am-u-sm-5 float_left" style="padding-right:0px;">
										<span><input type="text" datatype="n"  name="stock_num" style="border-right:0px" value="" placeholder="库存数量"></span>
										<span><small>必须填写数字</small></span>
									</div>
									<div class="am-u-sm-1 float_left" style="width:80px !important; padding:0px">
										<select name="type"><option value="1">加库存</option><option value="2">减库存</option></select>
									</div>
								</div>

								<div class="am-form-group">
									<div class="am-u-sm-9 am-u-sm-push-3">
										<input type="hidden" value="{$info.id}" name="id" /> 
										<button type="submit" class="am-btn am-btn-primary">确认增加</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
				</div>

        </div>
</block>